from django.db import models
from django.contrib.auth.models import AbstractUser

# Create your models here.
class Compture(models.Model):
    name=models.CharField(max_length=100,unique=True)
    price=models.DecimalField(max_digits=10,decimal_places=2)
    brand=models.CharField(max_length=16,verbose_name = "电脑品牌")

    class Meta:
        db_table = "bz_compture"
        verbose_name = "电脑"
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.name

